Automattic\Jetpack\Search\Helper D

Total Complexity 159
Dependencies 8
Dependents 14
Total lines 970
Lines of code 499
Logical lines of code 270
Comment lines 357
Methods 37
Properties 0

Methods 37

Method Rating Maintainability Complexity Lines of code
get_widget_tracks_value()
B
38 23 68
generate_initial_javascript_state()
B
32 21 97
generate_widget_filter_name()
A
43 13 50
get_filters_from_widgets()
A
50 10 26
ensure_post_types_on_remove_url()
A
50 9 29
get_filter_properties_for_tracks()
S
55 5 20
get_widget_properties_for_tracks()
S
56 5 17
get_date_filter_type_name()
S
58 5 16
remove_active_from_post_type_buckets()
S
60 5 12
post_types_differ_query()
S
58 4 15
get_active_post_types()
S
64 4 9
is_forced_new_pricing_202208()
S
72 4 4
get_active_plugins()
S
62 3 11
get_search_url()
S
62 3 11
should_rerun_search_in_customizer_preview()
S
77 3 3
get_wpcom_site_id()
S
70 3 6
get_widgets_from_option()
S
67 3 7
add_query_arg()
S
67 3 7
array_diff()
S
66 3 8
get_asset_version()
S
72 3 5
add_post_types_to_url()
S
62 2 12
sanitize_checkbox_value()
S
78 2 3
is_forced_free_plan()
S
78 2 3
print_instant_search_sidebar()
S
68 2 9
is_wpcom()
S
78 2 3
remove_query_arg()
S
74 2 4
post_types_differ_searchable()
S
66 2 8
get_max_offset()
S
79 2 3
get_max_posts_per_page()
S
79 2 3
is_valid_locale()
S
70 2 6
generate_post_type_customizer_ids()
S
70 1 6
generate_post_type_customizer_id()
S
79 1 3
sanitize_checkbox_value_for_js()
S
80 1 3
are_filters_by_widget_disabled()
S
79 1 3
get_widget_option_name()
S
79 1 3
build_widget_id()
S
78 1 3
is_active_widget()
S
78 1 3